Skip to content

Conversation

mariopaja
Copy link
Contributor

@mariopaja mariopaja commented Sep 15, 2025

This PR enables SAI on STM32L5xx series by:

  1. Adding stm32l5_clock dt-binding due to diffrences with L4xx series
  2. Adding SAI1 A/B nodes & PLLSAI1
  3. Update DMA configurations for STM32L5xx
  4. Adding nucleo_l552ze_q in samples/drivers/i2s/output

Information:
Talking directly to DMA instances (Instead of using DMAMUX) is the only possible solution (today) for drivers implemented using HAL.

stm32l5xx_sai

Example

Audio: 16bit, 2CH, 44.1KHz, using PCM5102A

stm32l5xx_sai.mp4

erwango
erwango previously approved these changes Oct 8, 2025
gautierg-st
gautierg-st previously approved these changes Oct 8, 2025
Copy link
Contributor

@etienne-lms etienne-lms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For commit "dt-bindings: clock: add stm32l5_clock": could you also update include/zephyr/drivers/clock_control/stm32_clock_control.h to include stm32l5_clock.h?

This change introduces stm32l5xx clock definitions and separates
it from L4xx series. This change comes because of CCIPR missmatch
of SAI between L4xx and L5xx series.

Signed-off-by: Mario Paja <[email protected]>
This change introduces PLLSAI1 and  SAI1 A/B nodes to STM32L5xx series

Signed-off-by: Mario Paja <[email protected]>
STM32L5xx series shares several DMA configurations with
the other platforms. These changes aim to enable platform
specific DMA configuration and align them to other platforms.

Signed-off-by: Mario Paja <[email protected]>
Add nucleo_l552ze_q board in samples/drivers/i2s/output

Signed-off-by: Mario Paja <[email protected]>
@mariopaja mariopaja dismissed stale reviews from gautierg-st and erwango via e846fff October 8, 2025 08:44
@mariopaja
Copy link
Contributor Author

For commit "dt-bindings: clock: add stm32l5_clock": could you also update include/zephyr/drivers/clock_control/stm32_clock_control.h to include stm32l5_clock.h?

done :)

Copy link

sonarqubecloud bot commented Oct 8, 2025

@kartben kartben merged commit 1b53332 into zephyrproject-rtos:main Oct 9, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants